import 'package:flutter/material.dart';
import 'package:shared_preferences/shared_preferences.dart';

// 声明一个 Future 类型的 prefs，用于获取 SharedPreferences 实例
final Future<SharedPreferences> prefs = SharedPreferences.getInstance();

// 定义全局的 ScaffoldState 键
GlobalKey<ScaffoldState> mainKey = GlobalKey<ScaffoldState>();
GlobalKey<ScaffoldState> appKey = GlobalKey<ScaffoldState>();
